<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div>
    <a>nihao</a>
    <ul id="seckillSkuContent">

    </ul>

    <a href="#"><input type="button" onclick="login()" value="立即登录" class="one_load_btn"></a>
</div>

</body>

<script type="text/javascript">




    $.get("http://seckill.gulimall.com/getCurrentSeckillSkus", function (res) {
        if (res.data.length > 0) {
            //console.log("res.data的值"+JSON.toJSONString(res.data));



            res.data.forEach(function(item) {
                  console.log($(item.skuId));
                  console.log("我的产品:"+$(item));
                  $("<li onclick='toDetail(" + item.skuId + ")'></li>")
                          .append($("<img style='width: 130px; height: 130px' src='" + item.skuInfo.skuDefaultImg + "' />"))
                          .append($("<p>"+item.skuInfo.skuTitle+"</p>"))
                          .append($("<span>" + item.seckillPrice + "</span>"))
                          .append($("<s>" + item.skuInfo.price + "</s>"))
                          .appendTo("#seckillSkuContent");
                }
            )
        }

    })



</script>
</html>